<template>
  <SkusTable
    ref="skusTable"
    :maxTableHeight="480"
    :dataSource="TableInfo.list"
    :columns="TableInfo.columns"
  />
</template>
<script>
import SkusTable from '@/components/skusTable';
import { TABLE_COLUMNS } from './constants';
import { TableInfo } from '@/utils/getUtils';
export default {
  components: { SkusTable },
  props: {
    skuInfoVos: {
      type: Array,
      default: () => []
    }
  },
  data () {
    return {
      TableInfo: new TableInfo({ columns: TABLE_COLUMNS.filter(item => item.key != 'action') })
    }
  },
  watch: {
    skuInfoVos: {
      handler (list) {
        this.TableInfo.setList(list)
      },
      immediate: true,
      deep: true
    }
  }
}
</script>
